import AsyncStorage from '@react-native-community/async-storage';

export const SET_KM = 'SETKM';
export const NICKNAME = 'SETNAME';
export const HEAD = 'HEAD';

export const get = async key => {
  try {
    return await AsyncStorage.getItem(key);
  } catch (e) {
    console.log(e);
  }
};

export const save = async (key, value) => {
  try {
    await AsyncStorage.setItem(key, value);
  } catch (e) {
    console.log(e);
  }
};
